package com.chukun.multi.masterslave.reusable;

import java.util.concurrent.Callable;

/**
 * 任务执行出错重试类
 * @param <T>
 * @param <V>
 */
public class RetryInfo<T,V> {

    public final  T subTask;
    public final Callable<V> redoCommamd;

    public RetryInfo(T subTask,Callable<V> redoCommamd) {
        this.redoCommamd = redoCommamd;
        this.subTask = subTask;
    }

    public T getSubTask() {
        return subTask;
    }

    public Callable<V> getRedoCommamd() {
        return redoCommamd;
    }
}
